<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<th:block data-th-replace="/adminlte/base::base-head"></th:block>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
	<div class="wrapper">
		<th:block data-th-replace="/adminlte/base::base-navbar"></th:block>
		<th:block data-th-replace="/adminlte/base::base-main-sidebar"></th:block>
		<div class="content-wrapper">
			<th:block data-th-replace="/adminlte/base::base-content-header"></th:block>
			<section class="content">
				<div class="container-fluid">
				    <div class="card card-info">
                        <div class="card-header">
                            <h5 class="card-title">软件信息</h5>
                        </div>
                        <div class="card-body">
                            <table class="table table-hover">
                                <tbody>
                                    <tr>
                                        <td>软件名称</td>
                                        <td th:text="${app.name}"></td>
                                        <td>软件版本</td>
                                        <td th:text="${app.version}"></td>
                                    </tr>
                                    <tr>
                                        <td>启动时间</td>
                                        <td th:text="${jvm.startTime}">2018-12-31 00:00:00</td>
                                        <td>运行时长</td>
                                        <td th:text="${jvm.runDuration}">0天0时0分0秒</td>
                                    </tr>
                                    <tr>
                                        <td colspan="1">安装路径</td>
                                        <td colspan="3" th:text="${app.path}"></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
					<div class="card card-info">
                        <div class="card-header">
                            <h5 class="card-title">服务器信息</h5>
                        </div>
                        <div class="card-body">
                            <table class="table table-hover">
                                <tbody>
                                    <tr>
                                        <td>服务器名称</td>
                                        <td th:text="${system.computerName}">RuoYi</td>
                                        <td>服务器IP</td>
                                        <td th:text="${system.computerIp}">127.0.0.1</td>
                                    </tr>
                                    <tr>
                                        <td>系统名称</td>
                                        <td th:text="${system.osName}">Linux</td>
                                        <td>系统架构</td>
                                        <td th:text="${system.osArch}">amd64</td>
                                    </tr>
                                    <tr>
                                        <td>CPU核数</td>
                                        <td th:text="${cpu.count}">Linux</td>
                                        <td>物理内存</td>
                                        <td th:text="${UnitUtils.byte2gb(memory.total)+' GB'}">amd64</td>
                                    </tr>
                                    <tr>
                                        <td>磁盘位置</td>
                                        <td th:text="${disk.name}"></td>
                                        <td>磁盘大小</td>
                                        <td th:text="${UnitUtils.byte2gb(disk.total)+' GB'}"></td>
                                    </tr>
                                    <tr>
                                        <td>磁盘已用</td>
                                        <td th:text="${UnitUtils.byte2gb(disk.used)+' GB'}"></td>
                                        <td>磁盘可用</td>
                                        <td th:text="${UnitUtils.byte2gb(disk.free)+' GB'}"></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
					<div class="card card-info">
						<div class="card-header">
							<h5 class="card-title">虚拟机信息</h5>
						</div>
						<div class="card-body">
							<table class="table table-hover margin bottom">
								<tbody>
									<tr>
										<td>虚拟机名称</td>
										<td th:text="${jvm.name}">Java</td>
										<td>虚拟机版本</td>
										<td th:text="${jvm.version}">1.8.0</td>
									</tr>
									<tr>
                                        <td>JAVA规范</td>
                                        <td th:text="${jvm.javaStandard}">Java</td>
                                        <td>JAVA版本</td>
                                        <td th:text="${jvm.javaVersion}">1.8.0</td>
                                    </tr>
                                    <tr>
                                        <td>最大内存</td>
                                        <td th:text="${UnitUtils.byte2mb(jvm.max)+' MB'}">Java</td>
                                        <td>占用内存</td>
                                        <td th:text="${UnitUtils.byte2mb(jvm.total)+' MB'}">1.8.0</td>
                                    </tr>
                                    <tr>
                                        <td>已用内存</td>
                                        <td th:text="${UnitUtils.byte2mb(jvm.used)+' MB'}">Java</td>
                                        <td>可用内存</td>
                                        <td th:text="${UnitUtils.byte2mb(jvm.free)+' MB'}">1.8.0</td>
                                    </tr>
									<tr>
										<td colspan="1">安装路径</td>
										<td colspan="3" th:text="${jvm.home}"></td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</section>
		</div>
		<th:block data-th-replace="/adminlte/base::base-footer"></th:block>
		<th:block data-th-replace="/adminlte/base::base-control-sidebar"></th:block>
	</div>
	<script src="/kaibes/js/base.js"></script>
</body>
</html>